package com.zhq.blog.core.domain.system;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.zhq.blog.core.domain.BaseRepository;

public interface NoticeRepository extends JpaRepository<Notice,Long>, BaseRepository<Notice>,JpaSpecificationExecutor<Notice> {

	
	@Query("select b from Notice b where deleted=0  order by id desc  ")
	Page<Notice> findAll(Pageable pageable);
}
